package com.example.demo.dto;


import java.util.Date;

public class Empoyee {
    private Integer id;
    private String name;
    private Integer departId;
    private Date birth;

    public Empoyee(Integer id, String name, Integer departId) {
        this.id = id;
        this.name = name;
        this.departId = departId;
        this.birth = new Date();
    }

    public Empoyee() {}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDepartId() {
        return departId;
    }

    public void setDepartId(Integer departId) {
        this.departId = departId;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
}
